package com.systop.asset.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 部门人员组织架构对象 dept_users
 * 
 * @author lsp
 * @date 2025-06-26
 */
public class DeptUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long id;

    /** 关联departments.id */
    // (name = "关联departments.id")
    private Long deptId;

    /** 关联users.id */
    // (name = "关联users.id")
    private Long userId;

    /** 是否部门负责人 1-是 2-否 */
    // (name = "是否部门负责人 1-是 2-否")
    private Long isLeader;

    /** 职位名称 */
    // (name = "职位名称")
    private String position;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // (name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    /** 离职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // (name = "离职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIsLeader(Long isLeader) 
    {
        this.isLeader = isLeader;
    }

    public Long getIsLeader() 
    {
        return isLeader;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setEntryDate(Date entryDate) 
    {
        this.entryDate = entryDate;
    }

    public Date getEntryDate() 
    {
        return entryDate;
    }
    public void setLeaveDate(Date leaveDate) 
    {
        this.leaveDate = leaveDate;
    }

    public Date getLeaveDate() 
    {
        return leaveDate;
    }

}
